<?php
    $this->load->view('wx/public/header.html', [
        'time' => time(),
        'index' => 4,
        'css' => [
            'assets/wx/css/center.css',
        ]
    ]);
?>

<body class="center" ng-controller="wx-center-cashin-detail-controller">

<section class="aui-grid aui-margin-b-15">
    <div class="aui-row">
        <div class="aui-col-xs-6 aui-text-center" style="padding: 10px 0;">
            <div class="aui-grid-label" style="font-size: 14px; color: #666;">最近充值金额</div>
            <div class="aui-grid-label" style="font-size: 30px; color: #000; font-weight: bold; margin-top: 0;" ng-bind="summary.latest"></div>
        </div>
        <div class="aui-col-xs-6 aui-text-center" style="padding: 10px 0;">
            <div class="aui-grid-label" style="font-size: 14px; color: #666;">历史充值总计</div>
            <div class="aui-grid-label" style="font-size: 30px; color: #000; font-weight: bold; margin-top: 0;" ng-bind="summary.total"></div>
        </div>
    </div>
</section>

<div class="aui-content aui-margin-b-15">
    <ul class="aui-list aui-media-list gu-clean-border">
        <li class="aui-list-header">
            充值记录
        </li>
        <li class="aui-list-item" ng-repeat="h in lists">
            <div class="aui-media-list-item-inner">
                <div class="aui-list-item-inner">
                    <div class="aui-list-item-text">
                        <div class="aui-list-item-title" style="color: #888; font-size: 14px;">
                            套餐
                            <span ng-bind="h.mealName" style="font-size: 16px;" class="gu-green"></span>
                        </div>
                        <div class="aui-list-item-right" style="font-size: 12px; color: #666;">套餐金额</div>
                    </div>
                    <div class="aui-list-item-text">
                        <div class="aui-list-item-title" style="font-size: 12px; color: #999999;" ng-bind="h.created_format"></div>
                        <div class="aui-list-item-right" style="color: #000; font-size: 14px; font-weight: bold;" ng-bind="h.amount_format"></div>
                    </div>
                </div>
            </div>
        </li>

        <li ng-if="history.length == 0">
            <p class="aui-text-center aui-padded-t-15 aui-padded-b-15">
                ~暂无记录~
            </p>
        </li>
    </ul>
</div>

<?php
    $this->load->view('wx/public/footer.html', [
        'js' => [
            'assets/wx/js/center/cash/cashin_detail.js'
        ]
    ]);
?>

